/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cxhd.dc;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Administrator
 */
public class DataCache {

    private Map<String, String> studyMap = new HashMap<String, String>();

    private static DataCache dataCache;

    public static DataCache getInstance() {

        if (dataCache == null) {
            dataCache = new DataCache();
        }
        return dataCache;
    }

    public void setStudyMap(String key, String value) {
        studyMap.put(key, value);
    }

    public String getStudyMap(String key) {
        return studyMap.get(key);
    }
}
